package com.fancy.mobileschool.entity;

/**
 * Created by Jackie on 2017/11/21.
 */
public class Attendance {

    public String course_id;

    public String course_name;

    public String start_time;

    public String end_time;

    public String day;

    public Attendance(String course_id, String start_time, String end_time, String day) {
        this.course_id = course_id;
        this.start_time = start_time;
        this.end_time = end_time;
        this.day = day;
    }

    public Attendance() {
    }

    public void setCourse_id(String course_id) {
        this.course_id = course_id;
    }

    public void setStart_time(String start_time) {
        this.start_time = start_time;
    }

    public void setEnd_time(String end_time) {
        this.end_time = end_time;
    }

    public void setDay(String day) {
        this.day = day;
    }

    public void setCourse_name(String course_name) {
        this.course_name = course_name;
    }

    @Override
    public String toString() {
        return "Attendance{" +
                "course_id='" + course_id + '\'' +
                ", course_name='" + course_name + '\'' +
                ", start_time='" + start_time + '\'' +
                ", end_time='" + end_time + '\'' +
                ", day='" + day + '\'' +
                '}';
    }

    @Override
    public int hashCode() {
        return course_id.hashCode();
    }

    @Override
    public boolean equals(Object o) {
        Attendance attendance = (Attendance) o;
        return attendance.course_id.equals(this.course_id);
    }
}
